﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="AddInfo.aspx.cs" Inherits="Workflow.Add" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <title></title>
    <link rel="stylesheet" type="text/css" href="../Css/bootstrap.css" />
    <link rel="stylesheet" type="text/css" href="../Css/bootstrap-responsive.css" />
    <link rel="stylesheet" type="text/css" href="../Css/style.css" />
    <script type="text/javascript" src="../Js/jquery.js"></script>
    <script type="text/javascript" src="../Js/jquery.sorted.js"></script>
    <script type="text/javascript" src="../Js/bootstrap.js"></script>
    <script type="text/javascript" src="../Js/ckform.js"></script>
    <script type="text/javascript" src="../Js/common.js"></script>

    <style type="text/css">
        body {
            padding-bottom: 40px;
        }
        .sidebar-nav {
            padding: 9px 0;
        }

        @media (max-width: 980px) {
            /* Enable use of floated navbar text */
            .navbar-text.pull-right {
                float: none;
                padding-left: 5px;
                padding-right: 5px;
            }
        }


    </style>
    
</head>
<body>
    <form id="form1" runat="server">
    <div>
       <table class="table table-bordered table-hover definewidth m10">
            <tr>
                <td class="tableleft">申请人</td>
                <td><asp:TextBox ID="txtUserName" runat="server" Enabled="false"></asp:TextBox></td>
            </tr>
           <%-- <tr>
                <td class="tableleft">工作流名称</td>
                <td><asp:DropDownList ID="ddlWorkflowName" runat="server">
                    </asp:DropDownList></td>
            </tr>--%>
            <tr>
                <td class="tableleft">标题</td>
                <td><asp:TextBox ID="txtContent" runat="server"></asp:TextBox></td>
            </tr>
            <tr>
                <td class="tableleft">所属组织单元</td>
                <td><asp:DropDownList ID="ddlTeam" runat="server"></asp:DropDownList></td>
            </tr>
           <tr>
                <td class="tableleft">紧急程度</td>
                <td><asp:DropDownList ID="ddlCritical" runat="server"></asp:DropDownList></td>
            </tr>
            <tr>
                <td class="tableleft"></td>
                <td>
                    <asp:Button ID="Button1" CssClass="btn btn-primary" runat="server" Text="提交" OnClientClick="return Validate()" OnClick="Button1_Click" Visible="false" />
                </td>
            </tr>
        </table>
    </div>
    </form>
    <script type="text/javascript">
        function Validate() {
            if ($("#txtContent").val().length > 20) {
                alert('标题长度不能超过20位');
                return false;
            }
        }
    </script>
</body>
</html>

